<!DOCTYPE html>
<html id="replace-style" lang="zh" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
	<meta charset="UTF-8" />
	<meta name="viewport" content="width=device-width, initial-scale=1.0" />
	<meta http-equiv="X-UA-Compatible" content="ie=edge" />
	<link rel="icon" type="image/x-icon" href="/favicon.ico" th:href="@{/favicon.ico}" >
	<title>关键备件管理</title>
		
</head>
<body>
<!--头部-->
<header th:replace="common/head" >
</header> 
<!-- 页面指向 -->
<div class="page-point bg-white">
	<ul>
		
		<li>备件管理</li>
		<li>关键备件管理</li>
	</ul>
</div>
<!-- 菜单树 -->
<div th:replace="common/left" > 
</div>




<!--主体内容-->
<div class="page-container">

	<div class="container-fluid mb-20 clearfix">
		<div class="col-md-12">
			<h2 class="page-section-title">查询条件</h2>
		</div>
	</div>

	<div class="container-fluid query-frame-wrap mb-10 clearfix">
        <div class="col-lg-9 col-lg-item-6">
            <div class="row">
                <div class="col-lg-4">
                    <div class="query-frame">
                        <label>备件编码</label>
                        <input autocomplete="new-password" class="form-control queryPart" id="partCode" type="text" />
                        </select>
                    </div>
                </div>
                <div class="col-lg-4">
                    <div class="query-frame">
                        <label>备件名称</label>
                        <input autocomplete="new-password" class="form-control queryPart" id="partName" type="text" />
                    </div>
                </div>
				<div class="col-lg-4">
					<div class="query-frame">
						<label>备件序列号</label>
						<input autocomplete="new-password" class="form-control queryPart" id="oSerialNum" type="text" />
					</div>
				</div>
            </div>
            <div class="row">
                <div class="col-lg-4">
                    <div class="query-frame">
                        <label>状态</label>
             			<select id="status" class="form-control queryPart">
							<option selected="selected" value="">不限</option>
							<option value="0">可使用</option>
							<option value="1">不可用</option>
							<option value="2">使用中</option>
						</select>
                    </div>
                </div>
            </div>
        </div>

        <div class="col-lg-3">
            <div class="query-frame query-button">
                <img id="queryPart" src="/linkdcs/image/search.png" />
                <img class="reset" src="/linkdcs/image/rest.png" />
            </div>
        </div>
	</div>

	<div class="container-fluid mb-20 clearfix">
		<div class="col-md-12 rlt">
			<h2 class="page-section-title">关键备件列表</h2>
			<ul class="table-tool">
			    <li data-toggle="modal"  class="addKeyPart" id="addKeyPart" shiro:hasPermission="app.part.keyPart.saveKeyPart.save.mvc">
			        <span class="icon-list_add" aria-hidden="true"></span>
			        <label>新增</label>
			    </li>
			    <li  class="updateKeyPart" id="updateKeyPart" shiro:hasPermission="app.part.keyPart.saveKeyPart.save.mvc">
			        <span class="icon-list_xiugai" aria-hidden="true"></span>
			        <label>修改</label>
			    </li>
			    <li id="delKeyPart" class="delKeyPart" shiro:hasPermission="app.part.keyPart.delKeyPartById.del.mvc">
			        <span class="icon-list_shanchu" aria-hidden="true"></span>
			        <label >删除</label>
			    </li>
			    <li id="refreshpart" class="refresh">
			        <span class="icon-list_shuaxin" aria-hidden="true"></span>
			        <label>刷新</label>
			    </li>
			</ul>
		</div>
	</div>

	<div class="container-fluid table-container">
		<table id="keyPartTable"  cellspacing="" cellpadding="">
						
		</table>
	</div>
</div>

<div class="modal fade modelForm" id="myModal" tabindex="-1" role="dialog" data-backdrop="static" data-keyboard="false">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title title">新增</h4>
      </div>
      <div class="modal-body">
		    <div class="row">
		        <div class="col-lg-12">
		            <form id="defaultForm" method="post" class="form-horizontal KeyPartForm" action="">
		                <div class="form-group">
		                    <label class="col-lg-3 control-label form-required form-required-2">状态</label>
		                    <div class="col-lg-7">
		                    	<select class="form-control status" name="status">
									<option selected="selected" value="0">可使用</option>
									<option value="1">不可用</option>
									<option value="2">使用中</option>
								</select>
		                    </div>
		                </div>
		                <div class="form-group">
		                    <label class="col-lg-3 control-label form-required form-required-4">备件编号</label>
		                    <div class="col-lg-7">
								<select class="form-control partCode" name="partCode">
								</select>
								<input autocomplete="new-password" type="hidden" class="form-control" name="partId" value="" />
		                    </div>
		                </div>
		                <div class="form-group">
		                    <label class="col-lg-3 control-label">备件名称</label>
		                    <div class="col-lg-7">
		                    	<input autocomplete="new-password" type="text" class="form-control" name="partName" value="" disabled/>
		                    </div>
		                </div>
          		        <div class="form-group">
		                    <label class="col-lg-3 control-label form-required form-required-5">备件序列号</label>
		                    <div class="col-lg-7">
		                    	<input autocomplete="new-password" type="text" class="form-control" name="oSerialNum" value="" />
		                    </div>
		                </div>
 

   		                <div class="form-group">
		                    <label class="col-lg-3 control-label form-required form-required-6">剩余使用寿命</label>
		                    <div class="col-lg-7">
		                    	<input autocomplete="new-password" type="text" class="form-control" name="standardLife" value="" />
		                    </div>
		                </div>		   
 		                <div class="form-group">
		                    <label class="col-lg-3 control-label">寿命单位</label>
		                    <div class="col-lg-7">
		                    	<input autocomplete="new-password" type="text" class="form-control" name="lifeUnit" value="" readonly/>
		                    </div>
		                </div>	         	                
             			<!-- 隐藏唯一id -->
						<input autocomplete="new-password" type="hidden" name="pkId" id="pkId" value="" />
		            </form>
		        </div>
		    </div>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-primary yes">保存</button>
        <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
      </div>
    </div>
  </div>
</div>




<div th:replace="common/foot" > 
</div>

<script th:src="@{/js/lifeCycle/partLifeCycle/keyPart.js}"type="text/javascript"></script>



</body>
</html>